import { RouteList } from "./index";
import { ROOT_ADMIN_PAGE_NAME } from "../constant";
import LoginRoute from "/@ts/router/routes/login";
import DemoTable from '/@ts/router/routes/modules/demoTable'
import { AppRouteModule } from "/@ts/router/types";

// RouteModuleList.push(root)
export const basicRoutes: AppRouteModule[] = [
        {
        path: "/",
        component: () => import("/@/layouts/index.vue"),
        children: [
            {
            path: "ai",
            name: "aiHelper",
    
            meta: {
              title: "AI助手",
            },
            component: () => import("/@/views/dashboard/ai/index.vue"),
          },
        ],
      },
    {
        path: "/",
        component: () => import("/@/layouts/index.vue"),
        redirect: "workbench",
        children: [
          {
            path: "workbench",
            name: "dashboardWorkbench",
    
            meta: {
              title: "工作台",
            },
            component: () => import("/@/views/dashboard/workbench/workbench.vue"),
          },
        ],
      },
    
      {
        path: "/adminEdit",
        name: ROOT_ADMIN_PAGE_NAME,
        hidden: true,
        meta: {
          title: "后台设置",
        },
        component: () => import("/@/layouts/index2.vue"),
      },
      {
        path: '/404',
        name: 'NotFound',
        component: () => import("/@/views/emptyData/404.vue"),
      },
      {
        path: "/moduleDesign/:id",
        name: "moduleDesign",
        meta: {
          title: "表单设计器",
          hideMenu: true, // 隐藏菜单
        },
        component: () => import("/@/views/dragForm/index.vue"),
      },
        ...LoginRoute,
    

];
